import api from '../../api';
import http from '@ohos.net.http';
import kvStoreUtil from '../../../kvStore/kvStoreUtil';
export default class getGameRecordCard extends api{

  public static async getInstance(){
     let uid = await kvStoreUtil.getInstance().get("MHY-MYS-UID")
     if(uid !== null && uid !== undefined){
       return new getGameRecordCard(uid)
     }
  }
  constructor(mysuid:string) {
    super({
      url:"https://api-takumi-record.mihoyo.com/game_record/app/card/wapi/getGameRecordCard",
      query:{uid:mysuid},
      method:http.RequestMethod.GET
    })
  }
}